/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VIPManagement.java
 *
 * Created on 2011-10-20, 20:59:58
 */
package JavaApplication1;

/**
 *
 * @author mengqingyi
 */
public class VIPManagement extends javax.swing.JFrame {

    /** Creates new form VIPManagement */
    public VIPManagement() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane14 = new javax.swing.JScrollPane();
        jTable4 = new javax.swing.JTable();
        basePanel = new javax.swing.JTabbedPane();
        newVIP = new javax.swing.JPanel();
        newVipInfo = new javax.swing.JPanel();
        addNewVip = new javax.swing.JButton();
        newVIPIDLabel = new javax.swing.JLabel();
        newVIPIDInput = new javax.swing.JScrollPane();
        newVIPIDText = new javax.swing.JTextPane();
        newVIPNameLabel = new javax.swing.JLabel();
        newVIPBirthdayLabel = new javax.swing.JLabel();
        newVIPGenderLabel = new javax.swing.JLabel();
        newVIPTelLabel = new javax.swing.JLabel();
        VIPTotalCreditLabel_New = new javax.swing.JLabel();
        VIPValidCreditLabel_New = new javax.swing.JLabel();
        newVIPNameInput = new javax.swing.JScrollPane();
        newVipNameText = new javax.swing.JTextPane();
        newVIPBirthdayInput = new javax.swing.JScrollPane();
        newVIPBirthdaytext = new javax.swing.JTextPane();
        newVIPGenderInput = new javax.swing.JScrollPane();
        newVIPGenderText = new javax.swing.JTextPane();
        newVIPTelInput = new javax.swing.JScrollPane();
        newVIPTelText = new javax.swing.JTextPane();
        VIPTotalCreditInput_New = new javax.swing.JScrollPane();
        VIPTotalCreditText_New = new javax.swing.JTextPane();
        VIPValidCreditInput_New = new javax.swing.JScrollPane();
        VIPValidCreditText_New = new javax.swing.JTextPane();
        VIPBasicInfo_New = new javax.swing.JScrollPane();
        VIPBasicInfoTable_New = new javax.swing.JTable();
        yes1 = new javax.swing.JButton();
        cancel1 = new javax.swing.JButton();
        checkNewVIPInfoReminder = new javax.swing.JTextField();
        giftDistribution = new javax.swing.JPanel();
        VIPForGifttsPanel = new javax.swing.JPanel();
        VIPForGiftList = new javax.swing.JScrollPane();
        VIPForGiftListTable = new javax.swing.JTable();
        giftChoiceLabel = new javax.swing.JLabel();
        giftChoice = new javax.swing.JComboBox();
        cofirmGiftDistribution = new javax.swing.JButton();
        cancelGiftDistribution = new javax.swing.JButton();
        showVIPInfo = new javax.swing.JButton();
        giftNumLabel = new javax.swing.JLabel();
        giftNum = new javax.swing.JSpinner();
        distributeDateLabel = new javax.swing.JLabel();
        yearInput = new javax.swing.JScrollPane();
        yeartxt = new javax.swing.JTextPane();
        nodeLabel1 = new javax.swing.JLabel();
        monthInput = new javax.swing.JScrollPane();
        monthText = new javax.swing.JTextPane();
        nodeLabel2 = new javax.swing.JLabel();
        dayInput = new javax.swing.JScrollPane();
        dayText = new javax.swing.JTextPane();
        VIPDetailedInfo = new javax.swing.JPanel();
        VIPBasicInfo = new javax.swing.JScrollPane();
        VIPBasicInfoTable = new javax.swing.JTable();
        VIPShoppingList = new javax.swing.JScrollPane();
        VIPSHoppingListTable = new javax.swing.JTable();
        VIPShppingListLabel = new javax.swing.JLabel();

        jTable4.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane14.setViewportView(jTable4);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("VIP顾客管理");

        newVIP.setBackground(new java.awt.Color(211, 220, 249));

        newVipInfo.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "VIP基本信息采集", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        addNewVip.setText("添加新会员...");

        newVIPIDLabel.setText("VIP编号:");

        newVIPIDText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        newVIPIDInput.setViewportView(newVIPIDText);

        newVIPNameLabel.setText("VIP姓名：");

        newVIPBirthdayLabel.setText("出生日期：");

        newVIPGenderLabel.setText("性别：");

        newVIPTelLabel.setText("联系方式：");

        VIPTotalCreditLabel_New.setText("积分总额：");

        VIPValidCreditLabel_New.setText("积分余额：");

        newVipNameText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        newVIPNameInput.setViewportView(newVipNameText);

        newVIPBirthdaytext.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        newVIPBirthdayInput.setViewportView(newVIPBirthdaytext);

        newVIPGenderText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        newVIPGenderInput.setViewportView(newVIPGenderText);

        newVIPTelText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        newVIPTelInput.setViewportView(newVIPTelText);

        VIPTotalCreditText_New.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        VIPTotalCreditInput_New.setViewportView(VIPTotalCreditText_New);

        VIPValidCreditText_New.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        VIPValidCreditInput_New.setViewportView(VIPValidCreditText_New);

        javax.swing.GroupLayout newVipInfoLayout = new javax.swing.GroupLayout(newVipInfo);
        newVipInfo.setLayout(newVipInfoLayout);
        newVipInfoLayout.setHorizontalGroup(
            newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(newVipInfoLayout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(newVIPIDLabel)
                    .addComponent(newVIPNameLabel)
                    .addComponent(newVIPBirthdayLabel)
                    .addComponent(newVIPGenderLabel))
                .addGap(37, 37, 37)
                .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(newVIPIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(newVipInfoLayout.createSequentialGroup()
                        .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(newVIPBirthdayInput)
                            .addComponent(newVIPGenderInput)
                            .addComponent(newVIPNameInput, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE))
                        .addGap(101, 101, 101)
                        .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(newVIPTelLabel)
                            .addComponent(VIPValidCreditLabel_New)
                            .addComponent(VIPTotalCreditLabel_New))))
                .addGap(33, 33, 33)
                .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(VIPValidCreditInput_New)
                    .addComponent(addNewVip)
                    .addComponent(newVIPTelInput, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
                    .addComponent(VIPTotalCreditInput_New))
                .addContainerGap(117, Short.MAX_VALUE))
        );
        newVipInfoLayout.setVerticalGroup(
            newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(newVipInfoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(addNewVip)
                    .addComponent(newVIPIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(newVIPIDLabel))
                .addGap(18, 18, 18)
                .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(newVIPNameLabel)
                        .addComponent(newVIPTelLabel))
                    .addComponent(newVIPNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(newVIPTelInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(25, 25, 25)
                .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(newVipInfoLayout.createSequentialGroup()
                        .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(newVIPBirthdayLabel)
                                .addComponent(VIPTotalCreditLabel_New))
                            .addComponent(newVIPBirthdayInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(24, 24, 24)
                        .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(newVipInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(VIPValidCreditLabel_New)
                                .addComponent(newVIPGenderLabel))
                            .addComponent(newVIPGenderInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(newVipInfoLayout.createSequentialGroup()
                        .addComponent(VIPTotalCreditInput_New, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(VIPValidCreditInput_New, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(40, Short.MAX_VALUE))
        );

        VIPBasicInfoTable_New.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null}
            },
            new String [] {
                "VIP编号", "VIP姓名", "出生日期", "性别", "联系方式", "积分总额", "积分余额"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        VIPBasicInfoTable_New.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        VIPBasicInfoTable_New.setGridColor(new java.awt.Color(0, 0, 0));
        VIPBasicInfo_New.setViewportView(VIPBasicInfoTable_New);
        VIPBasicInfoTable_New.getColumnModel().getColumn(0).setResizable(false);
        VIPBasicInfoTable_New.getColumnModel().getColumn(1).setResizable(false);
        VIPBasicInfoTable_New.getColumnModel().getColumn(2).setResizable(false);
        VIPBasicInfoTable_New.getColumnModel().getColumn(3).setResizable(false);
        VIPBasicInfoTable_New.getColumnModel().getColumn(4).setResizable(false);
        VIPBasicInfoTable_New.getColumnModel().getColumn(5).setResizable(false);
        VIPBasicInfoTable_New.getColumnModel().getColumn(5).setHeaderValue("积分总额");
        VIPBasicInfoTable_New.getColumnModel().getColumn(6).setResizable(false);
        VIPBasicInfoTable_New.getColumnModel().getColumn(6).setHeaderValue("积分余额");

        yes1.setText("确定");

        cancel1.setText("取消");

        checkNewVIPInfoReminder.setBackground(new java.awt.Color(211, 220, 249));
        checkNewVIPInfoReminder.setFont(new java.awt.Font("华文彩云", 0, 18));
        checkNewVIPInfoReminder.setText("请核对VIP基本信息：");
        checkNewVIPInfoReminder.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        checkNewVIPInfoReminder.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkNewVIPInfoReminderActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout newVIPLayout = new javax.swing.GroupLayout(newVIP);
        newVIP.setLayout(newVIPLayout);
        newVIPLayout.setHorizontalGroup(
            newVIPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(newVIPLayout.createSequentialGroup()
                .addContainerGap(38, Short.MAX_VALUE)
                .addGroup(newVIPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, newVIPLayout.createSequentialGroup()
                        .addGroup(newVIPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(VIPBasicInfo_New, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(checkNewVIPInfoReminder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(newVipInfo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, newVIPLayout.createSequentialGroup()
                        .addComponent(yes1)
                        .addGap(181, 181, 181)
                        .addComponent(cancel1)
                        .addGap(217, 217, 217))))
        );
        newVIPLayout.setVerticalGroup(
            newVIPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(newVIPLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(newVipInfo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(checkNewVIPInfoReminder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(22, 22, 22)
                .addComponent(VIPBasicInfo_New, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41)
                .addGroup(newVIPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(yes1)
                    .addComponent(cancel1))
                .addGap(9, 9, 9))
        );

        basePanel.addTab("发展新会员", newVIP);

        giftDistribution.setBackground(new java.awt.Color(211, 220, 249));

        VIPForGifttsPanel.setBackground(new java.awt.Color(211, 220, 249));
        VIPForGifttsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "需要赠送礼品的VIP列表", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        VIPForGiftListTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "VIP姓名", "VIP生日", "积分总额", "礼品赠送情况"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.Integer.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        VIPForGiftList.setViewportView(VIPForGiftListTable);
        VIPForGiftListTable.getColumnModel().getColumn(0).setResizable(false);
        VIPForGiftListTable.getColumnModel().getColumn(1).setResizable(false);
        VIPForGiftListTable.getColumnModel().getColumn(2).setResizable(false);
        VIPForGiftListTable.getColumnModel().getColumn(3).setResizable(false);

        giftChoiceLabel.setText("选择赠送礼品：");

        giftChoice.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        giftChoice.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                giftChoiceActionPerformed(evt);
            }
        });

        cofirmGiftDistribution.setText("确定");

        cancelGiftDistribution.setText("取消");
        cancelGiftDistribution.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancelGiftDistributionActionPerformed(evt);
            }
        });

        showVIPInfo.setText("显示会员信息");

        giftNumLabel.setText("赠送数目：");

        distributeDateLabel.setText("赠送日期");

        yearInput.setViewportView(yeartxt);

        nodeLabel1.setText("_");

        monthInput.setViewportView(monthText);

        nodeLabel2.setText("_");

        dayInput.setViewportView(dayText);

        javax.swing.GroupLayout VIPForGifttsPanelLayout = new javax.swing.GroupLayout(VIPForGifttsPanel);
        VIPForGifttsPanel.setLayout(VIPForGifttsPanelLayout);
        VIPForGifttsPanelLayout.setHorizontalGroup(
            VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(VIPForGiftList, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VIPForGifttsPanelLayout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(showVIPInfo)
                        .addGap(83, 83, 83)))
                .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(giftChoiceLabel)
                    .addComponent(giftNumLabel)
                    .addComponent(distributeDateLabel)
                    .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                        .addGap(15, 15, 15)
                        .addComponent(cofirmGiftDistribution)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(giftNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(giftChoice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                        .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(cancelGiftDistribution)
                            .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                                .addComponent(yearInput, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(2, 2, 2)
                                .addComponent(nodeLabel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(monthInput, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(nodeLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dayInput, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)))
                .addContainerGap())
        );
        VIPForGifttsPanelLayout.setVerticalGroup(
            VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                        .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(giftChoiceLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(giftChoice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(giftNumLabel)
                            .addComponent(giftNum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(distributeDateLabel)
                                .addComponent(yearInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(nodeLabel1)
                            .addComponent(monthInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(nodeLabel2)
                            .addComponent(dayInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(14, 14, 14))
                    .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                        .addComponent(VIPForGiftList, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)))
                .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(VIPForGifttsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cofirmGiftDistribution)
                            .addComponent(cancelGiftDistribution)))
                    .addGroup(VIPForGifttsPanelLayout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addComponent(showVIPInfo)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        VIPDetailedInfo.setBackground(new java.awt.Color(211, 220, 249));
        VIPDetailedInfo.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "会员详细信息", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        VIPBasicInfoTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null}
            },
            new String [] {
                "VIP编号", "VIP姓名", "出生日期", "性别", "联系方式", "积分总额", "积分余额"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        VIPBasicInfoTable.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        VIPBasicInfoTable.setGridColor(new java.awt.Color(0, 0, 0));
        VIPBasicInfo.setViewportView(VIPBasicInfoTable);
        VIPBasicInfoTable.getColumnModel().getColumn(0).setResizable(false);
        VIPBasicInfoTable.getColumnModel().getColumn(1).setResizable(false);
        VIPBasicInfoTable.getColumnModel().getColumn(2).setResizable(false);
        VIPBasicInfoTable.getColumnModel().getColumn(3).setResizable(false);
        VIPBasicInfoTable.getColumnModel().getColumn(4).setResizable(false);
        VIPBasicInfoTable.getColumnModel().getColumn(5).setResizable(false);
        VIPBasicInfoTable.getColumnModel().getColumn(5).setHeaderValue("积分总额");
        VIPBasicInfoTable.getColumnModel().getColumn(6).setResizable(false);
        VIPBasicInfoTable.getColumnModel().getColumn(6).setHeaderValue("积分余额");

        VIPSHoppingListTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "商品标识", "商品名称", "商品价格", "购买数量", "购买日期"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        VIPSHoppingListTable.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        VIPSHoppingListTable.setGridColor(new java.awt.Color(0, 0, 0));
        VIPShoppingList.setViewportView(VIPSHoppingListTable);
        VIPSHoppingListTable.getColumnModel().getColumn(0).setResizable(false);
        VIPSHoppingListTable.getColumnModel().getColumn(1).setResizable(false);
        VIPSHoppingListTable.getColumnModel().getColumn(2).setResizable(false);
        VIPSHoppingListTable.getColumnModel().getColumn(3).setResizable(false);
        VIPSHoppingListTable.getColumnModel().getColumn(4).setResizable(false);

        VIPShppingListLabel.setText("购买清单");

        javax.swing.GroupLayout VIPDetailedInfoLayout = new javax.swing.GroupLayout(VIPDetailedInfo);
        VIPDetailedInfo.setLayout(VIPDetailedInfoLayout);
        VIPDetailedInfoLayout.setHorizontalGroup(
            VIPDetailedInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VIPDetailedInfoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(VIPDetailedInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(VIPDetailedInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(VIPShppingListLabel)
                        .addComponent(VIPBasicInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 676, Short.MAX_VALUE))
                    .addComponent(VIPShoppingList, javax.swing.GroupLayout.DEFAULT_SIZE, 676, Short.MAX_VALUE))
                .addContainerGap())
        );
        VIPDetailedInfoLayout.setVerticalGroup(
            VIPDetailedInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(VIPDetailedInfoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(VIPBasicInfo, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(VIPShppingListLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(VIPShoppingList, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(16, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout giftDistributionLayout = new javax.swing.GroupLayout(giftDistribution);
        giftDistribution.setLayout(giftDistributionLayout);
        giftDistributionLayout.setHorizontalGroup(
            giftDistributionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(giftDistributionLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(giftDistributionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(VIPDetailedInfo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(VIPForGifttsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        giftDistributionLayout.setVerticalGroup(
            giftDistributionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(giftDistributionLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(VIPForGifttsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(VIPDetailedInfo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(18, 18, 18))
        );

        basePanel.addTab("礼品赠送", giftDistribution);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(basePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 757, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(basePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void checkNewVIPInfoReminderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkNewVIPInfoReminderActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_checkNewVIPInfoReminderActionPerformed

private void giftChoiceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_giftChoiceActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_giftChoiceActionPerformed

private void cancelGiftDistributionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelGiftDistributionActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cancelGiftDistributionActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VIPManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VIPManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VIPManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VIPManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new VIPManagement().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane VIPBasicInfo;
    private javax.swing.JTable VIPBasicInfoTable;
    private javax.swing.JTable VIPBasicInfoTable_New;
    private javax.swing.JScrollPane VIPBasicInfo_New;
    private javax.swing.JPanel VIPDetailedInfo;
    private javax.swing.JScrollPane VIPForGiftList;
    private javax.swing.JTable VIPForGiftListTable;
    private javax.swing.JPanel VIPForGifttsPanel;
    private javax.swing.JTable VIPSHoppingListTable;
    private javax.swing.JScrollPane VIPShoppingList;
    private javax.swing.JLabel VIPShppingListLabel;
    private javax.swing.JScrollPane VIPTotalCreditInput_New;
    private javax.swing.JLabel VIPTotalCreditLabel_New;
    private javax.swing.JTextPane VIPTotalCreditText_New;
    private javax.swing.JScrollPane VIPValidCreditInput_New;
    private javax.swing.JLabel VIPValidCreditLabel_New;
    private javax.swing.JTextPane VIPValidCreditText_New;
    private javax.swing.JButton addNewVip;
    private javax.swing.JTabbedPane basePanel;
    private javax.swing.JButton cancel1;
    private javax.swing.JButton cancelGiftDistribution;
    private javax.swing.JTextField checkNewVIPInfoReminder;
    private javax.swing.JButton cofirmGiftDistribution;
    private javax.swing.JScrollPane dayInput;
    private javax.swing.JTextPane dayText;
    private javax.swing.JLabel distributeDateLabel;
    private javax.swing.JComboBox giftChoice;
    private javax.swing.JLabel giftChoiceLabel;
    private javax.swing.JPanel giftDistribution;
    private javax.swing.JSpinner giftNum;
    private javax.swing.JLabel giftNumLabel;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JTable jTable4;
    private javax.swing.JScrollPane monthInput;
    private javax.swing.JTextPane monthText;
    private javax.swing.JPanel newVIP;
    private javax.swing.JScrollPane newVIPBirthdayInput;
    private javax.swing.JLabel newVIPBirthdayLabel;
    private javax.swing.JTextPane newVIPBirthdaytext;
    private javax.swing.JScrollPane newVIPGenderInput;
    private javax.swing.JLabel newVIPGenderLabel;
    private javax.swing.JTextPane newVIPGenderText;
    private javax.swing.JScrollPane newVIPIDInput;
    private javax.swing.JLabel newVIPIDLabel;
    private javax.swing.JTextPane newVIPIDText;
    private javax.swing.JScrollPane newVIPNameInput;
    private javax.swing.JLabel newVIPNameLabel;
    private javax.swing.JScrollPane newVIPTelInput;
    private javax.swing.JLabel newVIPTelLabel;
    private javax.swing.JTextPane newVIPTelText;
    private javax.swing.JPanel newVipInfo;
    private javax.swing.JTextPane newVipNameText;
    private javax.swing.JLabel nodeLabel1;
    private javax.swing.JLabel nodeLabel2;
    private javax.swing.JButton showVIPInfo;
    private javax.swing.JScrollPane yearInput;
    private javax.swing.JTextPane yeartxt;
    private javax.swing.JButton yes1;
    // End of variables declaration//GEN-END:variables
}
